﻿using ERP.Common.Results;
using ERP.ERPSystem.HumanResources;
using ERP.Team.HumanResources;
using Microsoft.AspNetCore.Mvc;
using NPOI.SS.Formula.PTG;
using System.Threading.Tasks;

namespace ERP.Web.Controllers.HumanResources
{
    public class TalentregistrationController : Controller
    {
        //人才登记管理接口
        ITalentregistrationService _talentregistrationService;

        public TalentregistrationController(ITalentregistrationService talentregistrationService)
        {
            _talentregistrationService = talentregistrationService;
        }

        public IActionResult TalentregistrationQuery()
        {
            return View();
        }
        /// <summary>
        /// 人才登记信息列表
        /// </summary>
        /// <param name="page">当前页</param>
        /// <param name="limit">页容量</param>
        /// <returns></returns>
        [HttpGet]
        public async Task<APIPaging<TalentregistrationModel>> GetTalentregistrationModel(string? code, string? name, string? degree, string? status, int page = 1, int limit = 3)
        {
            var TalentregistrationModel = await _talentregistrationService.GetTalentregistrationModel(code, name, degree, status,page,limit);
            return TalentregistrationModel;
        }
    }
}
